#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    float arr[5] = { 0 };
    int i = 0;
    float n = 0;
    int count = 0;
    while (count < 5)
    {
        for (i = 0; i < 5; i++)
        {
            scanf("%f ",&arr[i]);
            n += arr[i];
        }
        for (i = 0; i < 5; i++)
        {
            printf("%.1f ", arr[i]);
        }
        printf("%.1f\n", n);
        n = 0;
        count++;
    }
    return 0;
}